#ifndef MTUNARYOPERATOR_H
#define MTUNARYOPERATOR_H

#include "MTExpression.hpp"

namespace MathematicaTranslator {
	
	class MTUnaryOperator : public MTExpression {
		
	public:
		std::string op;
		MTExpression& expr;
		int type;

		MTUnaryOperator(MTExpression& expr, const std::string& op, int type)
			: expr(expr), op(op), type(type) { }
			
		virtual std::string* generateCode(CodeGenContext& context);
		virtual std::string* getType();
	};

}
#endif
